import request from '@/utils/request'
function getToken() {
  return localStorage.getItem('business-token')
}
// 查询app管理列表
export async function queryAppConfigure(data) {
  return request('/hzsx/appLink/queryAppLinkList', {
    method: 'POST',
    data,
    headers: { token: getToken() }
  })
}
//新增
export const addAppConfigure = data => {
    return request(`/hzsx/appLink/insertAppLink`, {
        method: 'POST',
        data,
        headers: {
            token: getToken()
        }
    })
}
// 删除app管理列表
export const deleteAppConfigure = data => {
  return request(`/hzsx/appLink/deleteAppLink?id=${data.id}`, {
    method: 'GET',
    headers: {
      token: getToken()
    }
  })
}

